package com.bupt.ilink.entity.Studyspace.DTO;

import com.bupt.ilink.entity.Studyspace.StudyTeacherCoursesTeacher;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class CourseResponse {
    private Long courseId;          // 课程的唯一标识
    private String teacherId;       // 授课老师的用户id, 外键关联tb_user
    private Long folderId;          // 课程文件夹id，外键关联

    private String courseName;        // 课程名称
    private String courseTag;       // 课程标签
    private String courseImage;       // 课程图片

    private List<StudyTeacherCoursesTeacher> teacher;

    private String courseDescription; // 课程简介

    private Long viewNum;           //课程点击量

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;  // 创建时间

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;  // 创建时间
}
